/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package RMI;

import java.rmi.Naming;

/**
 *
 * @author TNT
 */
public class Login {
    Connect_interface obj;
    public Login(){
        String url = "rmi://localhost:1099/"+"Demo";
        System.out.println(url);
        try {
            obj = (Connect_interface)Naming.lookup(url);
            System.out.println("Ket noi thanh cong");
           
            
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
